package com.ck.common.utils.tree;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ck
 * @date 2024/7/1 9:14
 */
@Data
public class TestChildren implements ITreeNode<TestChildren>{
    private Long id;

    private String name;

    private String treePath;

    private Long parentId;
    @TableField(exist = false)
    private List<TestChildren> children = new ArrayList<>();

    public TestChildren(Long id, String name, String treePath, Long parentId) {
        this.id = id;
        this.name = name;
        this.treePath = treePath;
        this.parentId = parentId;
    }


}
